package com.loopy.servlet.homework;

public class WebUtils {
    public static int parseInt(String s){
        int num=0;
        try {
            num= Integer.parseInt(s);
        } catch (NumberFormatException e) {
            System.out.println("输入的String有误");
        }
        return num;
    }
}
